"""
默认配置文件，包含所有服务的默认配置
"""
from typing import Dict, Any


def get_default_config() -> Dict[str, Any]:
    """
    获取默认配置
    
    @return: 默认配置字典
    """
    return {
        # WebSocket 服务配置
        "websocket": {
            "enabled": False,
            "connect": True,
            "max_reconnect_attempts": 10,
            "reconnect_interval": 5,
            "url": ""
        },
        
        # 评论服务配置
        "comment": {
            "max_comments": 100
        },
        
        # AI 服务配置
        "ai": {
            "token": "",  # 默认token
            "stream_mode": True,  # 流式对话模式
        },
        
        # 语音服务配置
        "speech": {
            "enabled": False,
            "api_key": "",
            "api_url": "",
            "voice": "default",
            "rate": 1.0,
            "volume": 1.0,
            "pitch": 1.0,
            "cache_dir": "音频缓存",
            "host_speed": 80,  # 主播语速 0.8
            "assist_speed": 100  # 助手语速 1.0
        },
        
        # 脚本服务配置
        "script": {
            "enabled": False,
            "scripts_dir": "data/scripts",
            "active_script_id": ""
        },
        
        # 音频服务配置
        "audio": {
            "enabled": False,
            "volume": 1.0,
            "muted": False
        },
        
        # UI 配置
        "ui": {
            "theme": "default",
            "font_size": 12,
            "window_width": 800,
            "window_height": 600,
            "max_comments_display": 50,
            "auto_scroll": True
        },
        
        # 日志配置
        "logging": {
            "level": "INFO",
            "file_enabled": True,
            "file_path": "logs/app.log",
            "max_file_size": 10485760,  # 10MB
            "backup_count": 5
        }
    } 